<template>
  <div
    id="fullscreen"
    class="fullscreen"
    ref="fullscreen"
    style="position: relative"
  >
    <!-- 需要全屏区域 -->
    <div class="content bg">
      <!-- 全屏容器 -->
      <!-- <dv-full-screen-container> -->
      <!-- 全屏按钮 -->
      <el-button
        type="primary"
        @click="fullScreen()"
        style="position: absolute; right: 25px; top: 20px"
        >全屏</el-button
      >
      <!-- <el-icon type="primary" @click="fullScreen()" color="#fff" class=""></el-icon> -->
      <!-- 第一行 -->
      <FirstModule />
      <!-- 第二行 -->
      <SecondModule />
      <!-- 第三行 -->
      <!-- </dv-full-screen-container> -->
      <ThirdModule />
    </div>
  </div>
</template>

<script>
import "@/assets/css/index.css"; //全局导入CSS
import FirstModule from "@/views/home/children/screen/FirstModule";
import SecondModule from "@/views/home/children/screen/SecondModule";
import ThirdModule from "@/views/home/children/screen/ThirdModule";

import { launchIntoFullscreen } from "@/utils/launchIntoFullscreen";
export default {
  name: "ScreenView",
  components: { FirstModule, SecondModule, ThirdModule },
  data() {
    return {};
  },
  methods: {
    fullScreen() {
      //全屏
      var full = document.getElementById("fullscreen");
      launchIntoFullscreen(full);
    },
  },
};
</script>

<style scoped lang="scss">
#fullscreen {
  width: 100%;
  height: 100%;
  background: url("@/assets/img/pageBg.png") repeat center #000;
  box-sizing: border-box;
  padding: 10px 10px 20px;
  overflow: auto;
}
.screnn-but {
  width: 30px;
  height: 30px;
}
</style>
